package com.shudingke.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2022-06-29
 */
public class Orders extends Model<Orders> implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    private  Integer uid;

    @TableField("recvName")
    private String recvName;

    @TableField("recvPhone")
    private String recvPhone;

    @TableField("recvProvince")
    private String recvProvince;

    @TableField("recvCity")
    private String recvCity;

    @TableField("recvArea")
    private String recvArea;

    @TableField("recvAddress")
    private String recvAddress;

    @TableField("totalPrice")
    private Double totalPrice;

    @TableField("status")
    private String status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:SSS")
    @TableField("orderTime")
    private LocalDateTime orderTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:SSS")
    @TableField("payTime")
    private LocalDateTime payTime;


    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getRecvName() {
        return recvName;
    }

    public void setRecvName(String recvName) {
        this.recvName = recvName;
    }

    public String getRecvPhone() {
        return recvPhone;
    }

    public void setRecvPhone(String recvPhone) {
        this.recvPhone = recvPhone;
    }

    public String getRecvProvince() {
        return recvProvince;
    }

    public void setRecvProvince(String recvProvince) {
        this.recvProvince = recvProvince;
    }

    public String getRecvCity() {
        return recvCity;
    }

    public void setRecvCity(String recvCity) {
        this.recvCity = recvCity;
    }

    public String getRecvArea() {
        return recvArea;
    }

    public void setRecvArea(String recvArea) {
        this.recvArea = recvArea;
    }

    public String getRecvAddress() {
        return recvAddress;
    }

    public void setRecvAddress(String recvAddress) {
        this.recvAddress = recvAddress;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(LocalDateTime orderTime) {
        this.orderTime = orderTime;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    @Override
    public String toString() {
        return "Orders{" +
        "oid=" + oid +
        ", uid=" + uid +
        ", recvName=" + recvName +
        ", recvPhone=" + recvPhone +
        ", recvProvince=" + recvProvince +
        ", recvCity=" + recvCity +
        ", recvArea=" + recvArea +
        ", recvAddress=" + recvAddress +
        ", totalPrice=" + totalPrice +
        ", status=" + status +
        ", orderTime=" + orderTime +
        ", payTime=" + payTime +
        "}";
    }
}
